<?php if($list){ ?>
<?php foreach($list as $v){ ?>
    <li>
        <div class="sb">
            <div class="top_box">
                <?php if(!$v['image']){ ?>
                    <?php if($v['sex'] ==1){ ?>
                        <div class="tx"><img src="<?php echo $this->staticsPath."/img/tx1.jpg" ?>" /></div>
                    <?php }else{ ?>
                        <div class="tx"><img src="<?php echo $this->staticsPath."/img/tx2.jpg" ?>" /></div>
                    <?php } ?>
                <?php }else{ ?>
                    <div class="tx"><img src="<?php echo $v['image']; ?>" /></div>
                <?php } ?>
                <div class="wz">
                    <div class="name"><?php echo $v['user_name']  ?></div>
                    <div class="time"><?php echo date('Y/m/d H:i',$v['create_time'])  ?></div>
                </div>
                <div class="an">
                    <div data-aid="<?php echo $v['bid']  ?>" data-id="<?php echo $v['id']  ?>" class="pinglun"></div>
                </div>
            </div>
            <div class="clearfix"></div>
        </div>
        <div class="con"><?php echo CHtml::decode($v['content']);  ?></div>
        <div class="book_box clearfix">
            <div class="book_thumb">
                <img src="<?php echo Yii::app()->params['webPath'].$v['thumb']; ?>" />
            </div>
            <div class="book_title"><?php echo CHtml::decode($v['title']);  ?></div>
        </div>
        <?php $comment_info =  BookComment::model()->getComment($v['id']); ?>
        <div  id="plbox_<?php echo $v['id'] ?>" class="plbox">
        <?php if($comment_info){ ?>

                <?php foreach($comment_info as $vv){ ?>

                    <div class="sb">
                        <div class="top_box">
                            <?php if($vv['role']==1){ ?>
                                <div class="name"><span class="nm"><?php echo $vv['user_name'] ?></span>：<?php echo $vv['content'] ?></div>
                            <?php }elseif($vv['role']==2){ ?>
                                <div class="name"><span class="nm"><?php echo $v['user_name'].'的'.$vv['is_relation'] ?></span>：<?php echo $vv['content'] ?></div>
                            <?php }elseif($vv['role']==3){ ?>
                                <div class="name"><span class="nm"><?php echo $vv['user_name'].'教师' ?></span>：<?php echo $vv['content'] ?></div>
                            <?php } ?>
                        </div>
                        <div class="clearfix"></div>
                    </div>

                <?php } ?>

        <?php } ?>
        </div>
    </li>
<?php } ?>
<?php } ?>
